<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<title>后台控制面板--首页</title>
        <link rel="stylesheet" type="text/css" href="../style/style.css" />

        <script type="text/javascript" src="../js/jquery/lib/jquery-1.4.4.min.js"></script>
        <script type="text/javascript" src="../js/jquery/plugin/validate/jquery.validate.js"></script>
        <script type="text/javascript" src="../js/jquery/plugin/validate/i18n/messages_cn.js"></script>
        <link type="text/css" rel="stylesheet" href="../js/jquery/plugin/formValidator/style/validator.css"> 
        <script type="text/javascript" src="../js/jquery/plugin/formValidator/formValidator.js" ></script>
        <script type="text/javascript" src="../js/jquery/plugin/formValidator/formValidatorRegex.js" ></script>
        <script type="text/javascript" src="../js/delete.js"></script>

</head>
<body class="indexbody">
	<#assign a=0>
 	<#assign b=0>
 	<#assign c=0>
 	<#list allPower?if_exists as power>
 		<#if power?number == 214>
 			<#assign a=a+1>
 		</#if>
 		<#if power?number == 215>
 			<#assign b=b+1>
 		</#if>
 		<#if power?number == 216>
 			<#assign c=c+1>
 		</#if>
 	</#list>
<div id="Content">
  <div style="width:100%; ">
  <div urlvalue="Oasp2803" functionid="FUNC00004" urlname="公告" recordcount="5" minflg="0" class="DesktopBlock" id="FUNC00004">
        <div id="Block">
          <div id="BlockHead">
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
              <tbody>
                <tr valign="center">
                  <td width="5"></td>
                  <td width="577">机构管理</td>
                  <td width="418">
                  <#if a gt 0>
                  <#if pid?exists>
                  <#if f?exists>
                  <#if pid=0>
                 <#elseif f=1 >
                  <#else>
                  <input name="" class="tjjgxx right" type="button" onclick="location.href='organizationAddload.action?pid=${pid}'" />
                  </#if>
                  </#if>
                  </#if>
                  </#if>
                  </td>
                  <#if pid?exists>
                  <#if f?exists>
                  <#if pid=0>
                  <#elseif f=1 >
                  <#else>
                  <td width="50"><input name="" class="fanhui right" type="button" onclick="location.href='organizationRrturnList.action?pid=${pid}'" /></td>
                  </#if>
                  </#if>
                  </#if>
                  <td width="22"></td>
                </tr>
              </tbody>
            </table>
          </div>
          <div class="right_con">
                	<ul class="rig_nav">
                    	<li  class="rig_nav_on"><a href="../organization/organizationList1.action">列表</a></li>
                        <li><a href="../organization/tree.action">树形结构</a></li>
                    </ul>
          <div class="right_con">
          <div class="BlockMemo" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
          <form action="organizationPageList.action" method="post" id="organizationPageList" name="organizationPageList">
            <div id="BlockDetail">
              <ul>
                <li class="DetailLine title-bg height-title">
                  <div class="DetailLineNo height-title">序号</div>
                  <div class="DetailLineJGName height-title">机构名称</div>
                  <div class="DetailLineFJGName height-title">所属机构名称</div>
                  <div class="DetailLineCZ height-title">操作</div>
                </li>
              </ul>
              <#if organization?exists>
     		<#if organization.getOrganization_id() gt 0>
         <ul>
                <li class="DetailLine height-30">
                  <div class="DetailLineNo ">${organization.organization_id?default(0)}</div>
                  <div class="DetailLineJGName text-a"><span class="mar-l25"><a href="organizationList.action?pid=${organization.organization_id?default(1)}">${organization.organization_name?default('')}</a></span></div>
                  <div class="DetailLineFJGName text-a"><span class="mar-l25">${organization.organization_parent?default('null')}</span></div>
                  <div class="DetailLineCZ" ><a href="organizationInfo.action?organization_id=${organization.organization_id?default(0)}">查询详情</a>      	
                 	<#if c==0>
			    		<font color="#777777">修改</font>
			    	<#else>
			    		<a href="organizationEditload.action?organization_id=${organization.organization_id?default(0)}" class="mar-l5">修改</a>
			    	</#if>
			        <#if b==0>
			    		<font color="#777777">删除</font>
			    	<#else>
			    		<a href="javascript:void(0)" class="mar-l5" onclick="javascript:if(window.confirm('您确定要删除该信息吗？')){change(${organization.organization_id?default(0)})}">删除</a>
			    	</#if>
                  <a href="organizationList.action?pid=${organization.organization_id?default(1)}" class="mar-l5">下级机构</a><a href="personnelAddload.action?organization_id=${organization.organization_id?default(1)}" class="mar-l5">添加本工会成员</a></div> 
                  
                  <input type ="hidden" id="pid" value="${organization.organization_id?default(0)}"/>
                </li>
              </ul>
              </#if>
              </#if>
               <#assign i=0>
               <#list OrganizationList?if_exists as olist>
               <#assign i=i+1>
              <ul>
                <li class="DetailLine height-30">
                
                  
                 
                  <div class="DetailLineNo ">${i}</div>
                  <div class="DetailLineJGName text-a"><span class="mar-l25"><a href="organizationList.action?pid=${olist.organization_id?default(1)}">${olist.organization_name?default('')}</a></span></div>
                  <div class="DetailLineFJGName text-a"><span class="mar-l25">${olist.organization_parent?default('null')}</span></div>
                  <div class="DetailLineCZ" ><a href="organizationInfo.action?organization_id=${olist.organization_id?default(0)}">查询详情</a>
                 	<#if c==0>
			    		<font color="#777777">修改</font>
			    	<#else>
			    		<a href="organizationEditload.action?organization_id=${olist.organization_id?default(0)}" class="mar-l5">修改</a>
			    	</#if>
			        <#if b==0>
			    		<font color="#777777">删除</font>
			    	<#else>
			    		<a href="javascript:void(0)" class="mar-l5" onclick="javascript:if(window.confirm('您确定要删除该信息吗？')){change(${olist.organization_id?default(0)})}">删除</a>
			    	</#if>
                  <a href="organizationList.action?pid=${olist.organization_id?default(1)}" class="mar-l5">下级机构</a>
                  <a href="personnelAddload.action?organization_id=${olist.organization_id?default(1)}" class="mar-l5">添加本工会成员</a></div>
                  <input type ="hidden" id="pid" value="${olist.organization_id?default(0)}"/> 
                </li>
                <div class="clear"></div>
              </ul>
              </#list>

              <div class="clear"></div>
              <div id="BlockFoot">
              <div class="left"><span class="STYLE10">第<span class="h2-red">${page}</span>页/共<span class="h2-red">${intPageCount}</span>页,总计<span class="h2-red">${intRowCount}</span>条记录</span></div>
												
<div class="right"><span class="STYLE10"> 
<#if page gt 1 > [<a href="organizationPageList.action?page=1">首页</a>]<#else> [首页]</#if> 
<#if page gt 1 >[<a href="organizationPageList.action?page=${page-1}">上一页</a>]<#else>[上一页]</#if>
<#if page lt intPageCount >[<a href="organizationPageList.action?page=${page+1}">下一页</a>] <#else>[下一页]</#if>
<#if page lt intPageCount >[<a href="organizationPageList.action?page=${intPageCount}">尾页</a>] <#else>[尾页]</#if>
转向<select id="page" name="page" onChange="document.organizationPageList.submit();;">
      <#assign p=intPageCount>
      <#if p==0>
      <option value='0' selected>1</option>
      <#else>
      <#list 1..p as j>
      <option value='${j}'
          <#if page==j>selected</#if>>${j}</option>
      
      </#list>
      </#if></select> 页 </span></div>
            </div>
            
            </div>
            </form>
          </div>
          </div>
          </div>
        </div>
      </div>
  </div>
</div>
</body>
</html>

